using UnityEngine;
using System.Collections;

public class OfflineEndGame : MonoBehaviour
{
	GUIText					endGameText = new GUIText();
	public Font				objectFont;
	public int				fontSize;
	public TextAlignment	alignment;
	public TextAnchor		anchor;
	public FontStyle		fontStyle;
	
	// Use this for initialization
	void Start ()
	{
		GameObject gameObj = GameObject.Find("WinOrLose");
		WinOrLose endGame = gameObj.GetComponent<WinOrLose>();
		
		if(endGame.win)
		{
			endGameText.text = "YOU WIN!";
		}
		else
		{
			endGameText.text = "YOU LOSE!";
		}
		
		endGameText.fontSize	= fontSize;
		endGameText.font		= objectFont;
		endGameText.anchor		= anchor;
		endGameText.fontStyle	= fontStyle;
		endGameText.alignment	= alignment;
	}
	
	// Update is called once per frame
	void Update ()
	{
	
	}
}
